<template>
	<activity-list :data="activities" @handleClick="handleActivity"></activity-list>
</template>

<script>
	import {
		getALLSchoolActivity
	} from "@/api/school/index.js"
	export default {
		data() {
			return {
				activities: []
			}
		},
		methods: {
			allSchoolActivity() {
				getALLSchoolActivity().then(res => {
					if (res.status == 0) {
						this.activities = res.activities
					}
				})
			},
			handleActivity(activity) {
				this.$tab.navigateTo("/pages/school-work/school-self-supervision-report/school-report-content?id=" +
					activity.id);
			}
		},
		onLoad() {
			this.allSchoolActivity()
		}
	}
</script>

<style lang="scss" scoped>
</style>